using System.Collections.Generic;

namespace System.Utility.Patterns
{
	public abstract class AbstractObseverable
	{
		protected List<IObsever> ObSevers = new List<IObsever>();

		protected AbstractObseverable()
		{
		}

		public void Register(IObsever obsever)
		{
			ObSevers.Add(obsever);
		}

		public void UnRegister(IObsever obsever)
		{
			ObSevers.Remove(obsever);
		}
	}
}